import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';
import { resolve} from 'path';
import Components from 'unplugin-vue-components/vite';
import { VantResolver } from 'unplugin-vue-components/resolvers';

export default defineConfig({
    plugins: [
        vue(),
        Components({
            resolvers: [VantResolver()],
        }),
    ],
    resolve: {
        alias: [
            {
                find: "@",
                replacement: resolve(__dirname, "./src"),
            },
        ]
    },
    server:{
        host:'0.0.0.0'
    }
})